package com.ruoyi.patrol.domain;

import com.ruoyi.common.annotation.Excels;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;


/**
 * 学校信息对象 pt_school
 *
 * @author lkm
 * @date 2022-11-08
 */
public class PtSchool extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 学校编号
     */
    private Long id;

    /**
     * 学校名称
     */
    @Excel(name = "学校名称")
    private String name;

    /**
     * 学校类别
     */
    @Excel(name = "学校类别")
    private String type;

    /**
     * 学校性质
     */
    @Excel(name = "学校性质")
    private String nature;

    /**
     * 责任人（关联若依sys_user的id，sys_user的nick_name为真实姓名）
     */
    @Excel(name = "责任人", readConverterExp = "关=联若依sys_user的id，sys_user的nick_name为真实姓名")
    private String userId;

    private String nickName;
    private String phonenumber;

    private String urgent;
    private String urgentPhone;

    /**
     * 行政人员数量
     */
    private Integer staffNum;
    /**
     * 安保人员数量
     */
    private Integer guardNum;

    @Excels({
            @Excel(name = "责任人员", targetAttr = "nickName", type = Excel.Type.EXPORT),
            @Excel(name = "电话号码", targetAttr = "phonenumber", type = Excel.Type.EXPORT)
    })
    private SysUser sysUser;

    /**
     * 删除标志（0代表存在 1代表删除）
     */
    private String delFlag;

    public Integer getStaffNum() {
        return staffNum;
    }

    public void setStaffNum(Integer staffNum) {
        this.staffNum = staffNum;
    }

    public Integer getGuardNum() {
        return guardNum;
    }

    public void setGuardNum(Integer guardNum) {
        this.guardNum = guardNum;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setNature(String nature) {
        this.nature = nature;
    }

    public String getNature() {
        return nature;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserId() {
        return userId;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPhonenumber() {
        return phonenumber;
    }

    public void setPhonenumber(String phonenumber) {
        this.phonenumber = phonenumber;
    }

    public String getUrgent() {
        return urgent;
    }

    public void setUrgent(String urgent) {
        this.urgent = urgent;
    }

    public String getUrgentPhone() {
        return urgentPhone;
    }

    public void setUrgentPhone(String urgentPhone) {
        this.urgentPhone = urgentPhone;
    }

    @Override
    public String toString() {
        return "PtSchool{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", nature='" + nature + '\'' +
                ", userId='" + userId + '\'' +
                ", nickName='" + nickName + '\'' +
                ", phonenumber='" + phonenumber + '\'' +
                ", urgent='" + urgent + '\'' +
                ", urgentPhone='" + urgentPhone + '\'' +
                ", sysUser=" + sysUser +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
